home *** CD-ROM | disk | FTP | other *** search
- ctcp *:*:# {
- haltdef
- if ($1- == $null) return
- if ($istok(%ctcpignores,$1,32)) return
- if ($form(mIRC,chanctcp)) iecho $readini %formats mIRC chanctcp
- else iecho $hc($nick) has requested a channel $sc($1) on $hc($target) at $hc($atime) $+ $cpms($2-)
- if ($iscloaked($fulladdress,$1)) {
- if ($form(mIRC,cloaked)) iecho $readini %formats mIRC cloaked
- else iecho CTCP $hc($1) $sc(reply) to $u($hc($nick)) cloaked...
- }
- }
- ctcp *:*:? {
- if ($1 == DCC) return
- haltdef
- if ($1- == $null) return
- if ($istok(%ctcpignores,$1,32)) return
- if ($ispwctcp1($1)) tokenize 32 $1 $str(*,$len($2)) $3-
- elseif ($ispwctcp2($1)) tokenize 32 $1 $str(*,$len($2)) $str(*,$len($3)) $4-
- if ($form(mIRC,ctcp)) iecho $readini %formats mIRC ctcp
- else iecho CTCP $hc($1) $sc(request) by $u($hc($nick)) at $hc($atime) $+ $cpms($2-)
- if ($iscloaked($fulladdress,$1)) {
- if ($form(mIRC,cloaked)) iecho $readini %formats mIRC cloaked
- else iecho CTCP $hc($1) $sc(reply) to $u($hc($nick)) cloaked...
- }
- }
- on ^*:ACTION:*:# {
- if ($form(mIRC,action)) $readini %formats mIRC action
- else echo $colour(Action) -tli2 $chan * $pst($nick,$chan) $+ $iif($chan != $target,:) $+ $iif($chan != $target,$target) $1-
- haltdef
- }
- on ^*:BAN:# {
- if ($form(mIRC,ban)) {
- $readini %formats mIRC ban
- haltdef
- }
- }
- on ^*:DEOP:# {
- if ($form(mIRC,deop)) {
- $readini %formats mIRC deop
- haltdef
- }
- }
- on ^*:DEVOICE:# {
- if ($form(mIRC,devoice)) {
- $readini %formats mIRC devoice
- haltdef
- }
- }
- on ^*:INVITE:# {
- if ($left($active,1) == @) {
- if ($form(mIRC,invite1)) {
- $readini %formats mIRC invite1
- haltdef
- }
- }
- else {
- if ($form(mIRC,invite2)) {
- $readini %formats mIRC invite2
- haltdef
- }
- }
- }
- on ^*:JOIN:# {
- if ($nick == $me) {
- if ($form(mIRC,joined)) {
- $readini %formats mIRC joined
- haltdef
- }
- }
- elseif ($mflag(options,n2,19) == 0) {
- if ($form(mIRC,join1)) {
- $readini %formats mIRC join1
- haltdef
- }
- }
- elseif ($mflag(options,n2,19) == 1) {
- if ($form(mIRC,join2)) {
- $readini %formats mIRC join2
- haltdef
- }
- }
- }
- on ^*:KICK:# {
- if (($knick == $me) && ($chan ischan)) {
- if ($form(mIRC,kickme)) {
- $readini %formats mIRC kickme
- haltdef
- }
- if (1) {
- if ($form(mIRC,kickrejoin)) {
- $readini %formats mIRC kickrejoin
- haltdef
- }
- }
- }
- else {
- if ($form(mIRC,kick)) {
- $readini %formats mIRC kick
- haltdef
- }
- }
- }
- on ^*:MODE:# {
- if ($form(mIRC,mode)) {
- $readini %formats mIRC mode
- haltdef
- }
- }
- on ^*:NICK {
- set %i 0
- :start
- inc %i
- if ($comchan($newnick,%i) != $null) {
- if ($form(mIRC,nick)) {
- $readini %formats mIRC nick
- haltdef
- }
- goto start
- }
- }
- on ^*:NOTICE:*:# {
- if ($form(mIRC,notice)) $readini %formats mIRC notice
- else echo $colour(Notice) -ti2 $chan - $+ $pst($nick,$chan) $+ : $+ $target $+ - $1-
- haltdef
- }
- on ^*:OP:# {
- if ($form(mIRC,deop)) {
- $readini %formats mIRC op
- haltdef
- }
- }
- on ^*:PART:# {
- if ($mflag(options,n2,19) == 0) {
- if ($form(mIRC,part1)) {
- $readini %formats mIRC part1
- haltdef
- }
- }
- elseif ($mflag(options,n2,19) == 1) {
- if ($form(mIRC,part2)) {
- $readini %formats mIRC part2
- haltdef
- }
- }
- }
- on ^*:QUIT {
- if ($mflag(events,default,3) == 3) return
- if ($mflag(events,default,3) > 0) echo $colour(Quit) -tsi2 *** $nick quit IRC $paren($1-)
- if ($mflag(events,default,3) == 1) return
- set %i 0
- :start
- inc %i
- if ($comchan($nick,%i) != $null) {
- if ($mflag(options,n2,19) == 0) {
- if ($form(mIRC,quit1)) $readini %formats mIRC quit1
- else echo $colour(Quit) -ti2 $comchan($nick,%i) *** $nick has left IRC $paren($1-)
- }
- elseif ($mflag(options,n2,19) == 1) {
- if ($form(mIRC,quit2)) $readini %formats mIRC quit2
- else echo $colour(Quit) -ti2 $comchan($nick,%i) *** Quits: $nick $paren($1-)
- }
- goto start
- }
- haltdef
- }
- on ^*:SERVERMODE:# {
- if ($form(mIRC,servermode)) {
- $readini %formats mIRC servermode
- haltdef
- }
- }
- on ^*:SERVEROP:# {
- if ($form(mIRC,serverop)) {
- $readini %formats mIRC serverop
- haltdef
- }
- }
- on ^*:SNOTICE:* {
- if (($left($active,1) == @) || (%snotice == off)) {
- if ($form(mIRC,servernotice1)) $readini %formats mIRC servernotice1
- else echo $colour(Notice) -tsi2 $sc(-) $+ $hc($nick) $+ $sc(-) $1-
- }
- else {
- if ($form(mIRC,servernotice2)) $readini %formats mIRC servernotice2
- else echo $colour(Notice) -tai2 $sc(-) $+ $hc($nick) $+ $sc(-) $1-
- }
- haltdef
- }
- on ^*:TEXT:*:# {
- if ($form(mIRC,text)) $readini %formats mIRC text
- else echo $colour(Normal) -tli2 $chan < $+ $pst($nick,$chan) $+ $+ $iif($chan != $target,:) $+ $iif($chan != $target,$target) $+ > $1-
- haltdef
- }
- on ^*:TOPIC:# {
- if ($form(mIRC,topic)) $readini %formats mIRC topic
- else echo $colour(topic) -ti2 $chan *** $pst($nick,$chan) changes the topic to ' $+ $1- $+ '
- haltdef
- }
- on ^*:UNBAN:# {
- if ($form(mIRC,unban)) {
- $readini %formats mIRC unban
- haltdef
- }
- }
- on ^*:USERMODE {
- if ($form(mIRC,mode)) {
- $readini %formats mIRC usermode
- haltdef
- }
- }
- on ^*:VOICE:# {
- if ($form(mIRC,voice)) {
- $readini %formats mIRC voice
- haltdef
- }
- }
- on ^*:WALLOPS:* {
- if (($left($active,1) == @) || (%wllp == off)) {
- if ($form(mIRC,wallops1)) $readini %formats mIRC wallops1
- else echo $colour(Wallops) -tsi2 $sc(!) $+ $hc($nick) $+ $sc(!) $1-
- }
- else {
- if ($form(mIRC,wallops2)) $readini %formats mIRC wallops2
- else echo $colour(Wallops) -tai2 $sc(!) $+ $hc($nick) $+ $sc(!) $1-
- }
- haltdef
- }
-